import request from "../utils/request";
// 添加管理员
export function _addAdmin(data) {
  return request(
    "/VueHandler/AdminLoginAndRegHandler?action=add",
    "post",
    data
  );
}
// 管理员列表
export function _getAdminList(data) {
  return request("/VueHandler/AdminHandler?action=show", "get", data);
}
//删除管理员
export function _delAdmin(tokenId) {
  return request("/VueHandler/AdminHandler?action=delete", "get", {
    tokenId: tokenId,
  });
}
// 修改管理员
export function _editAdmin(data) {
  return request("/VueHandler/AdminHandler?action=update", "post", data);
}
